import { createApp } from 'vue'
import { naive } from '@/utils/naive'
import router from '@/router'
import store from '@/store'
import * as api from '@/services'
import App from './layouts/Provider.vue'

import 'vfonts/Lato.css'
import 'vfonts/FiraCode.css'

import '@/styles/global.less'

import '@/utils/setPrimary'
// import "./permission";

const app = createApp(App)

app.use(naive)
app.use(router)
app.use(store)

app.config.globalProperties.$api = api

app.mount('#app')
